projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
130fc6c
)
Return a value from ::command-line handler
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 28 Sep 2015 10:28:51 +0000
(06:28 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 28 Sep 2015 10:29:51 +0000
(06:29 -0400)
The signal expects a return value, so give it one.
https://bugzilla.gnome.org/show_bug.cgi?id=755692
demos/gtk-demo/main.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/main.c
b/demos/gtk-demo/main.c
index 512221de662fad2f790dfe2d1d7e5b63ec115669..8e25adcc805b47d5143a2c837772c6fc6b254bd7 100644
(file)
--- a/
demos/gtk-demo/main.c
+++ b/
demos/gtk-demo/main.c
@@
-1073,7
+1073,7
@@
list_demos (void)
}
}
-static
void
+static
gint
command_line (GApplication *app,
GApplicationCommandLine *cmdline)
{
@@
-1096,7
+1096,7
@@
command_line (GApplication *app,
{
list_demos ();
g_application_quit (app);
- return;
+ return
0
;
}
if (name == NULL)
@@
-1137,6
+1137,8
@@
out:
if (autoquit)
g_timeout_add_seconds (1, auto_quit, app);
+
+ return 0;
}
int